package com.flsldl.mydb.backend.utils;

/**
 * @ClassName Types
 * @Description TODO
 * @Author @O_o @Date 2023/2/25 上午 10:50
 */

// 类似字符串拼接、将 pgno 和 offset 拼接
public class Types {
    public static long addressToUid(int pgno, short offset) {
        long u0 = (long) pgno;
        long u1 = (long) offset;
        return u0 << 32 | u1;
    }
}
